from django.db import models

# Create your models here.
from utils.models import BaseModel


class OAthOAUser(BaseModel):
    """OA登录用户数据"""

    workers = models.CharField(max_length=100, verbose_name='工号', db_index=True)  # db_index数据库层面创建索引加速查找
    user = models.ForeignKey('users.User', on_delete=models.CASCADE, verbose_name='用户')

    class Meta:
        db_table = 'tb_oauth_oa'
        verbose_name = 'OA登录用户数据'
        verbose_name_plural = verbose_name